package com.adcc.swingui.demo.statusbar;

import java.awt.Container;

import javax.swing.JComponent;
import javax.swing.JLabel;

import com.adcc.swingui.base.DefaultStatusBar;
import com.jidesoft.status.LabelStatusBarItem;
/**
 * 服务器连接状态的状态条
 * 监听服务器连接状态变化监听器，及时更新服务器信息
 * @author charlie
 *
 */
public class ServerAddrStatusBut extends DefaultStatusBar {
	
	LabelStatusBarItem labServer;
	public ServerAddrStatusBut(Container container) {
		super(container);
	}

	@Override
	protected JComponent build() {
		labServer = new LabelStatusBarItem();
        labServer.setText("服务器:127.0.0.1/8080");
        labServer.setAlignment(JLabel.LEFT);
		return labServer;
	}

	@Override
	protected void i18n() {
		// TODO Auto-generated method stub
		
	}

}
